Emacs should now build correctly on GNU/Hurd.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Mar 2013 05:04:46 +0000 (22:04 -0700)
committerRob Browning <rlb@defaultvalue.org>
Mon, 5 May 2014 23:48:35 +0000 (18:48 -0500)
Applied upstream patch:

  * sysdep.c: Remove a use of BSD_SYSTEM, which I'm trying to phase out.

  Include <sys/param.h> unconditionally, as that works elsewhere and
  is simpler here.  Include <sys/sysctl.h> if DARWIN_OS ||
  __FreeBSD__, not if BSD_SYSTEM, since it's needed only for Darwin
  and FreeBSD now.

Origin: upstream, commit: 112030, f83f57c2e20531ff3442904bc450607db19e999c
Added-by: Rob Browning <rlb@defaultvalue.org>
Provided-By: Paul Eggert <eggert@cs.ucla.edu>
Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=725099

src/ChangeLog
src/sysdep.c

index 921d411082bbcc92bcf490153692e789c18a0d9b..01acb0293752848a5dbc197a8e196a925481ab7e 100644 (file)
@@ -4,6 +4,14 @@
        We can't portably rely on PTY_OPEN doing that, even if
        it calls posix_openpt with O_CLOEXEC.
 
+2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * sysdep.c: Remove a use of BSD_SYSTEM, which I'm trying to phase out.
+       Include <sys/param.h> unconditionally, as that works elsewhere and
+       is simpler here.  Include <sys/sysctl.h> if DARWIN_OS ||
+       __FreeBSD__, not if BSD_SYSTEM, since it's needed only for Darwin
+       and FreeBSD now.
+
 2013-03-11  Glenn Morris  <rgm@gnu.org>
 
        * Version 24.3 released.
index 19c56869ea03bb313db2a42435873196f6c3637b..f62b6f046186e5dc39b56975708f7b9ccbed3768 100644 (file)
@@ -40,9 +40,8 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "sysselect.h"
 #include "blockinput.h"
 
-#ifdef BSD_SYSTEM
-#include <sys/param.h>
-#include <sys/sysctl.h>
+#if defined DARWIN_OS || defined __FreeBSD__
+# include <sys/sysctl.h>
 #endif
 
 #ifdef __FreeBSD__
@@ -71,9 +70,9 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #ifdef MSDOS   /* Demacs 1.1.2 91/10/20 Manabu Higashida, MW Aug 1993 */
 #include "msdos.h"
-#include <sys/param.h>
 #endif
 
+#include <sys/param.h>
 #include <sys/file.h>
 #include <fcntl.h>